<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

class RouteController extends Controller
{
    //
    public function index()
    {
        return view('route.index');

    }
    public function store(Request $request)
    {
        dump($request->filled('text1'));
        var_dump($request->except(['text1','text']));

        dd($request->all());
        $request->flush();
        return redirect('/');

    }
    public function index1(Request $request)
    {
        var_dump($request->input('id',0));
        var_dump($request->query());


        if ($request->is('home/*'))
        {
            dd(1);
        }else{
            dd(2);
        }

        if ($request->route()->name('dd')){
            dd($request->id);
        }else{
            dd('出错');
        }

//        $arg = [$request->arg1,$request->arg2];
//        dd($arg);

    }
}
